export function parseOption(option) {
    var query = {}
    if (option.url.includes("?")) {
        let index = option.url.indexOf("?") + 1;
        option.url.slice(index).split("&").forEach(k_v => {
            let [key, value] = k_v.split("=");
            query[key] = value
        })
    }

    let body = JSON.parse(option.body) || {}

    return {
        query,
        body
    }
}